import { _decorator } from "cc";
import { IEntity } from "../../Levels";
import { EntityManager } from "../../Base/EntityManager";
import { SmokeStateMachine } from "./SmokeStateMachine";

const { ccclass, property } = _decorator


@ccclass('SmokeManager')
export class SmokeManager extends EntityManager {

  async init(params:IEntity) {
    this.fsm = this.addComponent(SmokeStateMachine)
    await this.fsm.init()
    super.init(params)
  }
}
